package com.atguigu.loan;

/**
 * @author li.chunlong lcl253-137@alibaba-inc.com
 * @desc 已发布的状态
 * @date 2021-10-25
 */
public class PublishState extends AbstractState {

    @Override
    public void acceptOrderEvent(Context context) {
        // 把当前状态设置为NotPayState
        // 至于应该变成哪个状态，由流程图来决定
        context.setState(new NotPayState());
    }

    @Override
    public void notPeopleAcceptEvent(Context context) {
        context.setState(new FeedBackState());
    }

    @Override
    public String getCurrentState() {
        return StateEnum.PUBLISHED.getValue();
    }
}
